#ifndef __KEY_H__
#define __KEY_H__

#include "stm32f4xx.h"
#include "freertos.h"
#include "task.h"
#include "event_groups.h"
#include "sys.h"
#include "delay.h"





#define EVENT_GROUP_KEY1_DOWN		0x01
#define EVENT_GROUP_KEY2_DOWN		0x02
#define EVENT_GROUP_KEY3_DOWN		0x04
#define EVENT_GROUP_KEY4_DOWN		0x08
#define EVENT_GROUP_KEYALL_DOWN		0x0F


extern EventGroupHandle_t key_event_group;

extern void Key_Init(void);




#endif


